<template>
  <div class="mui-numbox" data-numbox-min='1' data-numbox-max='9'>
    <button class="mui-btn mui-btn-numbox-minus" type="button">-</button>
    <input id="test" class="mui-input-numbox" type="number" value="1" @change="change" ref='number'/>
    <button class="mui-btn mui-btn-numbox-plus" type="button">+</button>
  </div>
</template>
<script>
export default {
  data(){
    return {

    }
  },
  methods:{
    change(){
      this.$emit('number',parseInt(this.$refs.number.value))
    }
  }
}
</script>
<style lang="scss" scoped>

</style>

